﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Trust.Casas.Model.Entities;
using Se.Framework.Web.Mvc.GenericCrud;
using Se.Framework.Web.Mvc.GenericCrud.Attributes;

namespace Trust.Casas.Web.Areas.Admin.Models
{
    [GenericCrudTableData("Usuarios", typeof(User), "Id", MetadataType = typeof(UserMetadata))]
    public class UserMetadata
    {
        [GenericCrudColumn(RenderMode = GenericCrudRenderMode.None)]
        public int Id { get; set; }

        [Display(Name = "Nombre")]
        [Required]
        public string Name { get; set; }

        public DateTime CreatedStamp { get; set; }
    }
}